home *** CD-ROM | disk | FTP | other *** search
-
- /*
- There may be additional include files required depending
- upon the compile product you are using. Typical compilers
- include Microsoft C by Microsoft or Turbo C by Boland Int'l.
- */
- #include <stdio.h>
- main()
- {
- static char string[] = "hi there";
- char array[3][10];
- int i,j;
-
- for(i=0; i<3; i++){
- for(j=0; j<10 && string[j] != '\0'; j++)
- array[i][j] = string[j];
- array[i][j] = string[j]; /* Copy the NULL */
- }
- }
-